import styled from 'styled-components'

interface ExtendType {
  $isExtend: boolean
}

export const SongInfoWrapper = styled.div<ExtendType>`
  height: ${(props) => (props.$isExtend ? 'auto' : '475px')};
  display: flex;
  position: relative;
  overflow: hidden;
  > .image {
    width: 206px;

    .image_top {
      width: 198px;
      height: 198px;
      position: relative;

      .poster {
        margin: 34px;
      }

      .master {
        position: absolute;
        width: 206px;
        height: 205px;
        top: -4px;
        left: -4px;
        background-position: -140px -580px;
      }
    }

    .link {
      color: #0c73c2;
      margin: 20px 0 0 46px;
      &:hover {
        text-decoration: underline;
      }

      .music_icon {
        width: 16px;
        height: 16px;
        display: inline-block;
        vertical-align: bottom;
        background-position: -34px -863px;
      }
    }

    .download {
      margin: 10px 0 0 12px;
      width: 176px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      background: rgba(40, 50, 72, 0.03);
      cursor: pointer;
      border: 1px solid rgba(40, 50, 72, 0.25);
      > span {
        font-size: 14px;
      }
    }
  }

  > .info {
    margin-left: 10px;

    .title {
      display: flex;
      align-items: center;
      .lab {
        width: 54px;
        height: 24px;
        display: inline-block;
        background-position: 0 -463px;
      }
      .song_name {
        font-size: 24px;
        font-weight: 400;
        margin-left: 7px;
        margin-right: 7px;
      }
      .mv_icon {
        width: 21px;
        height: 18px;
        background-position: 0 -18px;
      }
    }

    .des {
      margin: 10px;
      .des_key {
        color: #999;
      }
      .des_value {
        margin-left: 5px;
        color: #0c73c2;
        cursor: pointer;
        &:hover {
          text-decoration: underline;
        }
      }
    }

    .btns {
      display: flex;
      margin-bottom: 25px;
      .play_btn {
        display: flex;
        .play {
          width: 60px;
          height: 30px;
          color: #fff;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          background-position: 0 -387px;
          &:hover {
          }
          .play_icon {
            display: inline-block;
            width: 20px;
            height: 18px;
            margin-right: 5px;
            background-position: 0 -1622px;
            overflow: hidden;
          }
        }
        .play_end {
          width: 10px;
          height: 30px;
          margin-left: -5px;
          background-position: right -428px;
        }
      }
      .favor {
        width: 55px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        cursor: pointer;
        background: rgba(40, 50, 72, 0.03);
      }
    }

    .lyric {
      width: 400px;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      /* background-color: red; */
      .lyric_item {
        height: 35px;
        line-height: 35px;
      }
    }

    .extend {
      color: #0c73c2;
      font-size: 16px;
      position: absolute;
      right: 10px;
      bottom: 0px;
      cursor: pointer;
      &:hover {
        text-decoration: underline;
      }
    }
  }
`
